//
//  CustomerScrollerView.h
//  UIScrollView循环滚动
//
//  Created by mac on 2017/8/2.
//  Copyright © 2017年 xiaopeng. All rights reserved.
//

#import <UIKit/UIKit.h>
//static NSInteger totalImage = 6;
@interface CustomerScrollerView : UIView<UIScrollViewDelegate>
@property (nonatomic,strong,readwrite)UIScrollView *scrollView;
@property (nonatomic,strong,readwrite)UIPageControl *pageControll;
@property (nonatomic,strong,readwrite)NSMutableArray *imageNameList;
@property (nonatomic,assign,readwrite)NSInteger currentIndex;
//初始化三个UIImageView
@property (nonatomic,strong,readwrite)UIImageView *leftImageView;
@property (nonatomic,strong,readwrite)UIImageView *currentImageView;
@property (nonatomic,strong,readwrite)UIImageView *rightImageView;

@property (nonatomic, assign) NSInteger totalImage;
//@property (nonatomic, strong) NSArray *contentArr;
@property (nonatomic,strong,readwrite)NSTimer *timer;


//@property (nonatomic,strong,readwrite)NSMutableArray *
//初始化数据源
-(void)initializeDataSource;
//初始化用户界面
-(void)initializeUserInterface;

//初始化图片数据
-(void)initImages;

//当scrollViewDidScroll触发时，时刻更新UI,此函数是实现循环的关键
-(void)updateUI;


//Timer事件处理
-(void)processTimer;


@end
